import App from './App.vue'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

import store from 'store'
Vue.prototype.$store = store;

//权限跳转
Vue.prototype.navigateTo=()=>{
	if (!store.state.user.loginStatus){
		uni.showToast({
			title: '请先登录',
			icon: 'none',
		})
		return uni.navigateTo({
			url: '/pages/login/login'
		})
	}
	uni.navigateTo({
		url: '/pages/tabbar/tabbar-5/tabbar-5'
	})
}

App.mpType = 'app'
const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
